package com.cazor.web.controller.dg;

import com.alibaba.fastjson2.JSON;
import com.cazor.common.core.domain.AjaxResult;
import com.cazor.dg.app.AppDataReSendService;
import com.cazor.dg.domain.vo.AppDataReSendVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/dg/reSend")
@Slf4j
public class AppDataReSendController {

    @Resource
    private AppDataReSendService appDataReSendService;

    @GetMapping("/getToken")
    public AjaxResult getToken(){
        return appDataReSendService.getToken();
    }


    @PostMapping("/withOutHisData")
    public AjaxResult reSendWithOutHisData(@RequestBody AppDataReSendVo queryVo) {

        log.info("queryVo:{}", JSON.toJSONString(queryVo));

//        return AjaxResult.success();

        return appDataReSendService.reSendWithOutHisData(queryVo);

    }

}
